#ifndef GPS_H
#define GPS_H

#include <QtGui/QLabel>
#include "Sensor.h"

class GPS : public Sensor {
private :
    const RobotMap* _map ;
	
	QLabel* _posX ;
	QLabel* _posY ;
	
	void updateLabels() ;
public:
    GPS(const RobotMap* map) ;
	~GPS() ;
	
	int firstValue() ;
	int secondValue() ;
	
	void updateDatas() ;
};

extern "C" Sensor * create_GPS(RobotMap* rm, Robot* r) 
{
	return new GPS(rm) ;
}

extern "C" void destroy_sensor(Sensor* s)
{
	delete s ;
}

extern "C" std::vector<PluginDef> getPluginsDefinition()
{
	std::vector<PluginDef> res ;
	res.push_back(PluginDef(SENSOR, "GPS", "Un GPS pour les rovers"));
	res.push_back(PluginDef(SENSOR, "LastPosition", "Where was you !"));
	return res ;
}

#endif // GPS_H
